<?php
// +----------------------------------------------------------------------
// | CLTPHP.Pro [会员等级模型]
// +----------------------------------------------------------------------
// | Copyright (c) 2019-2029 https://www.cltphp.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://www.cltphp.com/detail-140.html )
// +----------------------------------------------------------------------
// | Author: chichu <1109305987@qq.com>
// +----------------------------------------------------------------------

namespace app\admin\model;
use think\facade\Db;
use think\facade\Event;
class UserLevel extends Base
{
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    protected $pk = 'level_id';
    protected $validate = 'UserLevel';
    public static function getInfo($id){
        $info = self::where('level_id',$id)->find();
        return $info;
    }
}